/**
 * 
 */
package com.munoor.dalai.server.model.wrappers;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.munoor.dalai.server.model.Company;

/**
 * @author Osho Ilamah
 * @since version 1.0 (07 April 2011)
 */
@XmlRootElement(name = "company")
public class WrappedCompany {
	private Company entity = null;
	
	public WrappedCompany() {
		entity = new Company();
	}

	public WrappedCompany(Company entity) {
		this.entity = entity;
	}
	
	@XmlElement
	public long getCompanyId() {
		return entity.getCompanyId();
	}

	public void setCompanyId(long companyId) {
		entity.setCompanyId(companyId);
	}

	@XmlElement
	public String getCompanyName() {
		return entity.getCompanyName();
	}

	public void setCompanyName(String companyName) {
		entity.setCompanyName(companyName);
	}

	@XmlElement
	public String getLocationId() {
		return entity.getLocationId();
	}

	public void setLocationId(String locationId) {
		entity.setLocationId(locationId);
	}

	@XmlElement
	public String getLongDesc() {
		return entity.getLongDesc();
	}

	public void setLongDesc(String longDesc) {
		entity.setLongDesc(longDesc);
	}

	@XmlElement
	public String getShortDesc() {
		return entity.getShortDesc();
	}

	public void setShortDesc(String shortDesc) {
		entity.setShortDesc(shortDesc);
	}
	public Company unmarshall() {
		return entity;
	}
}
